package com.yike.user.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * 平台用户登录参数
 *
 * @author Sakura
 * @since 2023-10-30
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "平台用户登录参数")
public class PlatformUserLoginParam implements Serializable {
    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "用户名称 type为1必传", required = true)
    @NotBlank(message = "用户名称不能为空")
    private String username;


    @ApiModelProperty(value = "getSalt()接口获取的saltKey值", required = true)
    @NotBlank(message = "saltKey不能为空")
    private String saltKey;

    @ApiModelProperty(value = "密码 type为1必传", required = true)
    @NotBlank(message = "密码不能为空，前端从getSalt()接口获取盐使用AES加密传输")
    private String password;


}
